package fr.greta.centre.dao;

import java.sql.SQLException;
import java.sql.Connection;
import java.util.ArrayList;

import fr.greta.centre.metier.Candidat;
import fr.greta.centre.metier.Candidature;

public interface CandidatureDAO extends DaoGenerique<Candidature> {
	public ArrayList <Candidature> findByIdPersonne(int idPrsonne);
	
	
	public boolean delete(int idCandidat, int idPromotion);


	public abstract int saveCandidatNouveau(Candidature candidature)
			throws SQLException;


	public int saveSansTransaction(Candidature candidature, Connection connexion) throws SQLException;
	
	public void inserer(Candidat candidat, Candidature candidature) throws SQLException;
	public void mettreAjour(Candidat candidat, Candidature candidature) throws SQLException;
	public Candidature findByCandidatAndPromotion(int idCandidat, int idPromotion) throws SQLException;

}

